﻿@model IEnumerable<Abmemunit.Web.Models.UserViewModel>
@{
    ViewBag.Title = "Member List";
}
@{
    Html.RenderAction("MenuView", "User");             
}


<h2> Member List</h2>

<div id="idprog" style="height:100px;width:100px; z-index:500; display:none;border:2px solid green;background-color:Gray;"></div>
<div id="add-TStatus-message"></div>
<div id="ContentBody">
    <table>
        <tr>
            <th>
                Name
            </th>
            <th>
                Email
            </th>
            <th>
                Is Admin
            </th>
            <th>
                Mailing Address
            </th>
            <th>
                Last Login Date
            </th>
            <th>
                Created On
            </th>
            <th>
                Active
            </th>

            <th>
            </th>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.Username)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Email)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.IsAdminAccount)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.MailingAddress)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.LastLoginDateUtc)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.CreatedOnUtc)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Active)
                </td>

                <td>
                    @Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
                    @Html.ActionLink("Delete", "Delete", new { id = item.Id })
                </td>
            </tr>

        }
    </table>
</div>
